import request from "utils/request"

/* 
    登录请求，用于用户登录
    mobile：手机号(string)
    code：验证码(string)

*/
export const login = (data) => {
  return request({
    method: "POST",
    url: "/authorizations",
    data,
  })
}
// 获取用户信息
export const getUserProfile = () => {
  return request({
    url: "/user/profile",
  })
}
